package com.itheima.homework.System;

public class Demo {
    public static void main(String[] args) {
        int[] arr={10,27,8,5,2,1,3,55,88};
        int[] arr1=new int[5];
        int j=0;
        for (int i = 0; i < arr.length; i++) {
            if(arr[i]<10){
                arr1[j]=arr[i];
                j++;
            }
        }
        for (int i : arr1) {
            System.out.println(i);
        }
    }
}
